class CreateResources< ActiveRecord::Migration
  def self.up
    create_table :resources do |t|
      t.string :name, :null => false, :limit => 50
      t.string :description, :limit => 50
      t.decimal:price
      t.integer :quantity
      t.integer :category_id
      t.timestamps
    end
  end

  def self.down
    drop_table :resources
  end
end
